#!/bin/bash
set -e
if [ "x$1" == "xrecord" ]
then
echo -e "\033[35m/****build record****/\033[0m"
make CONFIG_UNI_UART_RECORD=y clean && make CFLAG=-DCONFIG_UNI_UART_RECORD CONFIG_UNI_UART_RECORD=y
elif [ "x$1" == "xmp3" ]
then
echo -e "\033[35m/****build mp3****/\033[0m"
make CONFIG_USE_MP3=y clean && make CONFIG_USE_MP3=y
else  
echo -e "\033[35m/****build normal****/\033[0m"
make clean && make
fi
